package chapter06.属性和方法整体练习.案例1;

/**
 * ClassName: Person
 * Package: chapter06.属性和方法整体练习.案例1
 * Description:
 *
 * @Author fjord
 * @Create 2025/1/9 20:45
 * @Version 1.0
 */

public class Person {
     String name;
     int age;
     int sex;
     public void study() {
        System.out.println("studying");
    }
    public void showAge() {
        System.out.println("Age: " + age);
    }


    public void addAge(int i) {
        age += i;
    }
}